import JWTToken from './../../helpers/jwt'

export default{
    actions:{
        updatePasswordRequest({dispatch},formData){
            return axios.post('/api/user/password/update',formData).then(response=>{
                dispatch('showNotification',{level:'success',msg:'更新密码成功！'})
            }).catch(errors=>{
                dispatch('showNotification',{level:'error',msg:'更新密码失败！'})
            })
        },

    } 
}